package bosc.cn.util;

import bosc.cn.dto.common.CommonResponse;
import java.time.LocalDateTime;


public class ResponseUtil {

    public static CommonResponse buildResponseHead(String retCd, String retMsg, LocalDateTime retTm) {
        CommonResponse head = new CommonResponse();
        head.setRetCd(retCd);
        head.setRetMsg(retMsg);
        head.setRetTm(retTm != null ? retTm : LocalDateTime.now());
        return head;
    }
}

